<template>
	<view class="content">
		<u-sticky bgColor="#fff">
			<u-tabs :list="list"></u-tabs>
		</u-sticky>
		<view class="skill-list" v-for="(item,index) in 10" :key="index" @click="godetail(item)">
			<image src="https://cdn.uviewui.com/uview/swiper/1.jpg" mode="aspectFill"
				style="width: 185rpx;height: 123rpx;"></image>
			<view style="margin-left: 15rpx;">技能提升</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					name: '关注',
				}, {
					name: '推荐',
				}, {
					name: '电影'
				}, {
					name: '科技'
				}, {
					name: '音乐'
				}, {
					name: '美食'
				}, {
					name: '文化'
				}, {
					name: '财经'
				}, {
					name: '手工'
				}]
			}
		},
		methods: {
			godetail(item) {
				uni.navigateTo({
					url: '/pages/studyAll/skillDetail/skillDetail'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-bottom: calc(env(safe-area-inset-bottom) / 2 + 23rpx) !important;
	}

	.skill-list {
		margin-top: 23rpx;
		width: 688rpx;
		padding: 23rpx;
		background: #FFFFFF;
		border-radius: 10rpx;
		display: flex;
		align-items: center;
		font-weight: 500;
		font-size: 27rpx;
		color: #000000;
	}
</style>